package com.xj.demo.gcdemo;

public class SystemGCTest {
    public static void main(String[] args) {
        new SystemGCTest();
        System.gc();
        System.runFinalization();
    }
    @Override
    public void finalize() throws Throwable {
        super.finalize();
        System.out.println("finalize method executed!");
    }
}
